package com.miao.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Data {

    public SimpleDateFormat  demoTime(){
        Date date=new Date();
        SimpleDateFormat formmat=new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
        formmat.format(date);
        return formmat;
    }

    public static void main(String[] args) {
        Data data=new Data();

        System.out.println(data.demoTime());
    }
}
